//获取当前日期函数
export default function getNowFormatDate() {
  let date = new Date(),
    year = date.getFullYear(),
    month = date.getMonth() + 1,
    strDate = date.getDate()
  if (month < 10) month = `0${month}`
  if (strDate < 10) strDate = `0${strDate}`

  return `${year}-${month}-${strDate}`
}
